package com.base.myproject.client.tools;

import com.extjs.gxt.ui.client.widget.Dialog;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.Frame;

public class FileDialog {
	public static Dialog getExcelFileDialog() {
		Dialog d = new Dialog();  //上传文件框
		Frame frame = new Frame("hr_Jsp/uploadExcelFiles.jsp");
		d.setHeading("上传文件");
		d.setWidth(520);
		d.setHeight(300);
		d.setHideOnButtonClick(true);
		
		DOM.setIntAttribute(frame.getElement(), "frameBorder", 0);
		frame.setWidth("500");
		frame.setHeight("300");
		d.add(frame);
		
		return d;
	}
}
